/*
 * @Author: yuanchenxi 836909158@qq.com
 * @Date: 2024-07-24 18:33:32
 * @LastEditors: 武兴创 superjava@vip.qq.com
 * @LastEditTime: 2024-08-28 17:43:08
 * @FilePath: \SGFEM\DataStructure\FEM\Element\include\CSHEARData.h
 */

#pragma once
#include "DataStructure/Common/DataStructureExport.h"
#include "DataStructure/Common/DataStructureNamespace.h"
#include "DataStructure/Common/Id.h"
#include "DataStructure/Input/Element/ElementBase.h"

SG_DATASTRUCTURE_FEM_NAMESPACE_OPEN
/** @brief 剪切单元数据定义
 *
 * 单元具有4个节点
 *  @author Yuan Chenxi            2024.07.23
 */
struct DECLSPEC CSHEARData : public ElementBase
{
    SG::DataStructure::Common::Id m_pId      = 0;      ///< \ref ShearProperty "ShearProperty"剪切单元属性参考号
    SG::DataStructure::Common::Id m_g[4]     = { 0 };  ///< 节点号
    SG::DataStructure::Common::Id m_domainId = 0;
};

/// @brief 判断两个CSHEARData是否相等
DECLSPEC bool operator== (const CSHEARData& a, const CSHEARData& b);

SG_DATASTRUCTURE_FEM_NAMESPACE_CLOSE